Encapsulation in other words means code isolation

Code isolation, or encapsulation (like a capsule), is when methods wrapped into a class to make one solid piece of logic, it became like a capsule. Also, then one piece of code knows little or nothing about another

Leave a Reply